<template>
  <div id="app">
    <!-- <router-view></router-view> -->
    <keep-alive :include="['index', 'voiceRoom', 'my']">
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <tabbar v-show="tabBarName.includes($route.name)"></tabbar>
  </div>
</template>

<script>
import tabbar from '@/common/tabbar/tabbar'
export default {
  name: 'app',
  data () {
    return {
      tabBarName: ['index', 'voiceRoom', 'my']
    }
  },
  components: {
    tabbar,
  }
}
</script>

<style>
#app {
  width: 100%;
  /* background: #ebebeb; */
}
</style>
